package net.crashtoot.picasa.core.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.crashtoot.picasa.core.dao.AccountDao;
import net.crashtoot.picasa.core.model.Account;
import net.crashtoot.picasa.core.service.AccountService;

@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountDao dao;

    @Override
    public Account getAccountByUserName(String username) {
        return dao.getAccountByUserName(username);
    }

    @Override
    public List<Account> listAll() {
        return dao.listAll();
    }

}
